home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / borland / bgits4_0.zip / README < prev    next >
Text File  |  1992-07-23  |  2KB  |  72 lines

  1. What it is:
  2.   A BGI driver to make use of the 256-colour modes on cards that
  3.   use the TSENG 4000 chipset.
  4.   The modes supported are:
  5.  
  6.     Resolution        BIOS mode
  7.     ------------        ---------
  8.     640x400x256        0x2F
  9.     640x480x256        0x2E
  10.     800x600x256        0x30
  11.     1024x768x256        0x38
  12.  
  13. Problems:
  14.   There are some problems that result from the BGI interface
  15.   insisting on there only being 16 color in a palette. For example,
  16.   when the driver code for the function 'setallpalette' is finally
  17.   called, a max of 16 bytes are passed to this function (even if
  18.   the size was specified as being larger in the struct passed).
  19.   The 'getpalette' routine also returns only 16 bytes; these seem
  20.   to come from some internal buffer.
  21.   However, the function 'setrgbpalette' does work as would be expected.
  22.   Thus, if you want to make use of 256 colors, you will either have to
  23.   write your own function to set all 256 colours at once (easy to do),
  24.   or make successive calls to the 'setrgbpalette' function, and each
  25.   time specify one RGB triplet.
  26.   The 'getdefaultpalette' returns triplets in the *current* palette set.
  27.  
  28. Demo file:
  29.   Borland's demo file "BGIDEMO.C" can easily be modified to make
  30.   use of this driver.
  31.  
  32.   1) Somewhere near the start of the program, add the following
  33.      function prototype:
  34.  
  35.         int huge Tseng4Mode(void);
  36.  
  37.   2) In the routine 'Initialize' just before the line
  38.  
  39.         GraphDriver = DETECT;
  40.  
  41.      add
  42.  
  43.         driver =installuserdriver ("TSENG4", Tseng4Mode);
  44.  
  45.   3) At the end of the file, add the following, and simply
  46.      uncomment the appropriate 'return' line.
  47.  
  48. #define Mode640x400    0
  49. #define Mode640x480    1
  50. #define Mode800x600    2
  51. #define Mode1024x768    3
  52.  
  53. int huge Tseng4Mode(void)
  54. {
  55.   /* return(Mode640x400);    /**/
  56.   /* return(Mode640x480);    /**/
  57.   return(Mode800x600);    /**/
  58.   /* return(Mode1024x768);    /**/
  59. }
  60.  
  61. Shareware:
  62.   This program is distributed as shareware; see the file REGISTER.DOC
  63.  
  64. Disclaimer:
  65.   This file is distributed WITHOUT ANY WARRANTY; without even the
  66.   implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  67.   PURPOSE.
  68.  
  69. Bug reports and/or suggestions to:
  70.   stuart@coral.cs.jcu.edu.au
  71.  
  72.